/**
 * Created by zhangligang
 * Email: tzhang2450@163.com
 * Date: 2018/9/10
 * Time: 22:12
 */
$(function(){
    var data = {
        from: $('.from-user-id').val(),
        to: $('.to-user-id').val(),
        type: 'sms',
        title: $('.sms-type').val(),
        content: $('.sms-content').val()
    };
    sendAjax('/v1/send/sms.json', 'post', {data:data}, function(json){
        var content = json.body.data.content;
        console.log(content.message);
    });
});